db

src.db.create_db(db, drop_db=True)[source]

Create an output relational database. Will drop existing database unless the drop_db parameter is set to False. @param db: Dictionary containing the database metadata including the database name and connection parameters. @param drop_db: If set to True will cause the database to be dropped if it already exists, default is True.

src.db.create_lookups(db)[source]

Helper function to add lookup tables to a database. The lookup tables reside within a directory db_info[‘dir’], each table is stored as a file in the lookup directory with the filename being the name of the table.

src.db

alias of src.db

This Page